﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NHibernate.Classic;

namespace DomainModel.Entities
{
    public class StatusInfo:ILifecycle
    {
        private byte statusId;
        public virtual string Description
        {
            get;
            set;
        }
        public virtual byte Status
        {
            get
            {
                return this.statusId;
            }
            set
            {
                this.statusId = value;
            }
        }
        public virtual StatusEnum StatusAsEnum
        {
            get
            {
                return (StatusEnum)this.statusId;
            }
            set
            {
                this.statusId = (byte)value;
            }
        }

        public LifecycleVeto OnDelete(NHibernate.ISession s)
        {
            throw new NotImplementedException();
        }

        public void OnLoad(NHibernate.ISession s, object id)
        {
            throw new NotImplementedException();
        }

        public LifecycleVeto OnSave(NHibernate.ISession s)
        {
            throw new NotImplementedException();
        }

        public LifecycleVeto OnUpdate(NHibernate.ISession s)
        {
            throw new NotImplementedException();
        }
    }
}
